<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
        #box {
            width: 200px;
            height: 200px;
            background-color: blanchedalmond;
            margin: 100px;
        }
        
        body {
            height: 1900px;
        }
        
        #info {
            font-size: 30px;
        }
    </style>
</head>

<body>
    <div id="box"></div>
    <div id="info"></div>
    <script>
        var oBox = document.getElementById("box");
        var oInfo = document.getElementById("info");
        oBox.onmousemove = function(e) {
            oInfo.innerHTML =
                "offsetX/Y:" +
                e.offsetX +
                "," +
                e.offsetY +
                "clentX/Y" +
                e.clientX +
                "," +
                e.clientY +
                "pageX/Y" +
                e.pageX +
                "," +
                e.pageY;
        };
    </script>
</body>

</html>